package com.project.bean;

import java.util.List;

public class BookBean {
    private int id;
    private String name;
    private String author;
    private int price;
    private String img;
    private List<SpeakBean> speaks;

    public BookBean() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public List<SpeakBean> getSpeaks() {
        return speaks;
    }

    public void setSpeaks(List<SpeakBean> speaks) {
        this.speaks = speaks;
    }

    @Override
    public String toString() {
        return "BookBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", price=" + price +
                ", img='" + img + '\'' +
                ", speaks=" + speaks +
                "}\n";
    }
}
